// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    board: cc.Node = null;

    @property(cc.Label)
    label: cc.Label = null;


    onLoad () {
        this.node.on('touchstart', this.onClicked, this);
    }

    start () {

    }
    onClicked(){
        this.board = cc.find('Canvas/挤压伤口/挤压文字');
        this.board.active = false;
        this.board = cc.find('Canvas/挤压伤口/棉签');
        this.board.active = true;
        this.board = cc.find('Canvas/挤压伤口/碘伏文字');
        this.board.active = true;
        this.board = cc.find('Canvas/挤压伤口/next');
        this.board.active = false;
        this.board = cc.find('Canvas/挤压伤口/next2');
        this.board.active = true;
    }

    // update (dt) {}
}
